#include <QtGui>
#include <QtCore/QTextCodec>
#include <QTranslator>
#include "gv_systemtransmittersconfigurationinputdialog.h"
#include "gv_systemtransmittersconfigurationdialog.h"
#include "gv_home.h"
#include "gv_setting.h"

extern GV_Setting *gvsetting;
extern QDialog  *dialog;
GV_SystemTransmittersConfigurationInputDialog::GV_SystemTransmittersConfigurationInputDialog(QWidget *parent)
       : QDialog(parent)
{
    setupUi(this);

    QTranslator translator;
    translator.load(gvsetting->GV_GetLanguage(),".");
    qApp->installTranslator(&translator);
    reloadtext();

    connect(BackButton,SIGNAL(clicked()),this,SLOT(home()));
    //connect(CancelButton,SIGNAL(clicked()),this,SLOT(cancel()));
    connect(CancelButton,SIGNAL(clicked()),this,SLOT(home()));
    connect(AcceptButton,SIGNAL(clicked()),this,SLOT(home()));



}
void GV_SystemTransmittersConfigurationInputDialog::reloadtext()
{
    //NameHintsLabel->setText(tr("Zones"));
}

void GV_SystemTransmittersConfigurationInputDialog::home()
{
    QDialog *dialog1 = new GV_SystemTransmittersConfigurationDialog;
    dialog1->show();
    delete dialog;
    dialog = dialog1;
}

void GV_SystemTransmittersConfigurationInputDialog::accept()
{
    //TODO
}

void GV_SystemTransmittersConfigurationInputDialog::cancel()
{
    QDialog *dialog1 = new GV_SystemTransmittersConfigurationDialog;
    dialog1->show();
    delete dialog;
    dialog = dialog1;
}



